package com.lxmes.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

/**
 * 采购对象 cc_caigou_main
 * 
 * @author ruoyi
 * @date 2022-06-11
 */
public class CcCaigouMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 采购单号 */
    @Excel(name = "采购单号")
    private String caigouDanhao;

    /** 申请事由 */
    @Excel(name = "申请事由")
    private String shenqingShiyou;

    /** 申请人 */
    @Excel(name = "申请人")
    private String shenqingName;

    /** 申请人联系电话 */
    @Excel(name = "申请人联系电话")
    private String shenqingTel;

    /** 申请日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date shenqingDate;

    /** 采购人 */
    @Excel(name = "采购人")
    private String caigouName;

    /** 采购人联系电话 */
    @Excel(name = "采购人联系电话")
    private String caigouTel;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date caigouDate;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long shenheState;

    /** 总价格 */
    @Excel(name = "总价格")
    private BigDecimal totalPrice;

    /** 总数量 */
    @Excel(name = "总数量")
    private BigDecimal totalNum;

    /** 发票上传 */
    @Excel(name = "发票上传")
    private String fapiaoImg;
    /*是否入库*/
    private Long  isRk;
    private String caigouState;
    /*采购类型 0-自建 1-外协*/
    private String caigouType;

    /** 所属组织 */
    private Long deptId;
    private String queryParams;
    private List<CcCaigouDetail> infoList;
    public String getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(String queryParams) {
        this.queryParams = queryParams;
    }

    public List<CcCaigouDetail> getInfoList() {
        return infoList;
    }

    public void setInfoList(List<CcCaigouDetail> infoList) {
        this.infoList = infoList;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCaigouDanhao(String caigouDanhao) 
    {
        this.caigouDanhao = caigouDanhao;
    }

    public String getCaigouDanhao() 
    {
        return caigouDanhao;
    }
    public void setShenqingShiyou(String shenqingShiyou) 
    {
        this.shenqingShiyou = shenqingShiyou;
    }

    public String getShenqingShiyou() 
    {
        return shenqingShiyou;
    }
    public void setShenqingName(String shenqingName) 
    {
        this.shenqingName = shenqingName;
    }

    public String getShenqingName() 
    {
        return shenqingName;
    }
    public void setShenqingTel(String shenqingTel) 
    {
        this.shenqingTel = shenqingTel;
    }

    public String getShenqingTel() 
    {
        return shenqingTel;
    }
    public void setShenqingDate(Date shenqingDate) 
    {
        this.shenqingDate = shenqingDate;
    }

    public Date getShenqingDate() 
    {
        return shenqingDate;
    }
    public void setCaigouName(String caigouName) 
    {
        this.caigouName = caigouName;
    }

    public String getCaigouName() 
    {
        return caigouName;
    }
    public void setCaigouTel(String caigouTel) 
    {
        this.caigouTel = caigouTel;
    }

    public String getCaigouTel() 
    {
        return caigouTel;
    }
    public void setCaigouDate(Date caigouDate) 
    {
        this.caigouDate = caigouDate;
    }

    public Date getCaigouDate() 
    {
        return caigouDate;
    }
    public void setShenheState(Long shenheState) 
    {
        this.shenheState = shenheState;
    }

    public Long getShenheState() 
    {
        return shenheState;
    }
    public void setTotalPrice(BigDecimal totalPrice) 
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice() 
    {
        return totalPrice;
    }
    public void setTotalNum(BigDecimal totalNum) 
    {
        this.totalNum = totalNum;
    }

    public BigDecimal getTotalNum() 
    {
        return totalNum;
    }
    public void setFapiaoImg(String fapiaoImg) 
    {
        this.fapiaoImg = fapiaoImg;
    }

    public String getFapiaoImg() 
    {
        return fapiaoImg;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public Long getIsRk() {
        return isRk;
    }

    public void setIsRk(Long isRk) {
        this.isRk = isRk;
    }

    public String getCaigouState() {
        return caigouState;
    }

    public void setCaigouState(String caigouState) {
        this.caigouState = caigouState;
    }

    public String getCaigouType() {
        return caigouType;
    }

    public void setCaigouType(String caigouType) {
        this.caigouType = caigouType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("caigouDanhao", getCaigouDanhao())
            .append("shenqingShiyou", getShenqingShiyou())
            .append("shenqingName", getShenqingName())
            .append("shenqingTel", getShenqingTel())
            .append("shenqingDate", getShenqingDate())
            .append("caigouName", getCaigouName())
            .append("caigouTel", getCaigouTel())
            .append("caigouDate", getCaigouDate())
            .append("shenheState", getShenheState())
            .append("totalPrice", getTotalPrice())
            .append("totalNum", getTotalNum())
            .append("fapiaoImg", getFapiaoImg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("deptId", getDeptId())
            .toString();
    }
}
